<template>
  <view class="card">
    <view class="card-header">
      <text class="title">{{ questionnaire.name }}</text>
      <text class="type">{{ questionnaire.type }}</text>
    </view>
    <text class="description">{{ questionnaire.description }}</text>
  </view>
</template>

<script lang="ts" setup>
import { ref, defineProps } from 'vue'

interface Questionnaire {
  name: string
  description: string
  type: string
}

const props = defineProps<{
  questionnaire: Questionnaire
}>()
</script>

<style lang="scss" scoped>
.card {
  padding: 16px;
  margin: 16px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgb(0 0 0 / 10%);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.title {
  font-size: 18px;
  font-weight: bold;
}

.type {
  font-size: 14px;
  color: #888;
}

.description {
  font-size: 14px;
  color: #333;
}
</style>
